package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ContractProjectRelationMapper;
import com.ruoyi.system.domain.ContractProjectRelation;
import com.ruoyi.system.service.IContractProjectRelationService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2024-03-12
 */
@Service
public class ContractProjectRelationServiceImpl implements IContractProjectRelationService
{
    @Autowired
    private ContractProjectRelationMapper contractProjectRelationMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ContractProjectRelation selectContractProjectRelationById(Long id)
    {
        return contractProjectRelationMapper.selectContractProjectRelationById(id);
    }
    @Override
    public List<ContractProjectRelation> selectContractProjectRelationByProjectId(Long projectId)
    {
        return contractProjectRelationMapper.selectContractProjectRelationByProjectId(projectId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param contractProjectRelation 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ContractProjectRelation> selectContractProjectRelationList(ContractProjectRelation contractProjectRelation)
    {
        return contractProjectRelationMapper.selectContractProjectRelationList(contractProjectRelation);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param contractProjectRelation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertContractProjectRelation(ContractProjectRelation contractProjectRelation)
    {
        return contractProjectRelationMapper.insertContractProjectRelation(contractProjectRelation);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param contractProjectRelation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateContractProjectRelation(ContractProjectRelation contractProjectRelation)
    {
        return contractProjectRelationMapper.updateContractProjectRelation(contractProjectRelation);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteContractProjectRelationByIds(Long[] ids)
    {
        return contractProjectRelationMapper.deleteContractProjectRelationByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteContractProjectRelationById(Long id)
    {
        return contractProjectRelationMapper.deleteContractProjectRelationById(id);
    }
    @Override
    public int deleteContractProjectRelationByProjectId(Long projectId)
    {
        return contractProjectRelationMapper.deleteContractProjectRelationByProjectId(projectId);
    }
}
